package com.xiaochong.tir.common.util;

/**
 * Redis参数
 * Created by wujiaxing on 2018/4/26.
 */
public class RedisKeysUtils {
    /**
     * tir大盘指数
     */
    public static final String TIR_BROADER_INDEX = "tir_broader_index";
    /**
     * tir大盘指数,从今日0点到当前时间周期内的最高指数
     */
    public static final String TIR_BROADER_INDEX_HIGH = "tir_broader_index_high@";
    /**
     * tir大盘指数,从今日0点到当前时间周期内的最低指数
     */
    public static final String TIR_BROADER_INDEX_LOW = "tir_broader_index_low@";
    /**
     * tir大盘指数5分钟内图标数据
     */
    public static final String TIR_BROADER_INDEX_ALL_DATA = "tir_broader_index_all_data";
    /**
     * tir权重指数
     */
    public static final String TIR_WEIGHT_INDEX = "tir_weight_index";
    /**
     * tir最新权重指数K线信息
     */
    public static final String TIR_LAST_WEIGHT_INDEX = "tir_last_weight_index";
    /**
     * tir权重指数5分钟内图标数据
     */
    public static final String TIR_WEIGHT_INDEX_ALL_DATA  = "tir_weight_index_all_data";
    /**
     * tir权重流通市值
     */
    public static final String TIR_WEIGHT_SUPPLY_PRICE = "tir_weight_supply_price";
    /**
     * tir行业指数
     */
    public static final String TIR_INDUSTRY_INDEX = "tir_industry_index@";
    /**
     * tir行业指数5分钟内图标数据
     */
    public static final String TIR_INDUSTRY_INDEX_ALL_DATA = "tir_industry_index_all_data@";
    /**
     * tir行业流通市值
     */
    public static final String SUM_INDUSTRY_SUPPLY_PRICE = "sum_industry_supply_price@";
    /**
     * tir概念指数
     */
    public static final String TIR_CONCEPT_INDEX = "tir_concept_index@";
    /**
     * tir大盘分析涨跌评分和评语
     */
    public static final String TIR_CHANGE_STATISTICS = "change_statistics";
    /**
     * 每日大盘指数，权重指数，行业指数表名
     */
    public static final String INDEX_EVERY_DAY_RECORDING = "index_every_day_recording";
    /*
     *权重货币诊断
     */
    public static final String TIR_WEIGHTS_DIAGNOSIS = "tir_weights_diagnosis";
    /*
     *货币当天最高价 USD
     */
    public static final String COIN_HEIGHT_PRICE_USD = "coin_height_price_usd@";
    /*
     *货币当天最高价 CNY
     */
    public static final String COIN_HEIGHT_PRICE_CNY = "coin_height_price_cny@";
    /*
     *货币当天最低价 USD
     */
    public static final String COIN_LOW_PRICE_USD = "coin_low_price_usd@";
    /*
     *货币当天最低价 CNY
     */
    public static final String COIN_LOW_PRICE_CNY = "coin_low_price_cny@";
    /**
     * mysql 货币信息缓存key
     */
    public static final String CURRENCY_INFO_KEY = "currency";
    /**
     * 权重货币 缓存key
     */
    public static final String  CURRENCY_WEIGHTS_KEY = "currency_weights";
    /**
     * 货币排行榜
     */
    public static final String COIN_RANK = "coin_rank";
    /**
     * 货币市值前五
     */
    public static final String COIN_FIVE_RANK = "coin_five_rank";
    /**
     * 基期
     */
    public static final String CURRENCYINFO_HBASE_MIN_CREATETIME = "currencyinfo_hbase_min_createtime";

    /**
     * ar人气指标后面加cmdid和日期，每天去hbase一次
     */
    public static final String AR_HEAT_INDEX_ERVEYDAY = "ar_heat_index_everyday@";

    /**
     * ar人气指标后面加cmdid，每个货币10天的数据
     */
    public static final String AR_HEAT_INDEX_ALL_DATA = "ar_heat_index_all_data@";
    /**
     * ar人气指标后面加cmdid，每个货币24小时内的数据
     */
    public static final String AR_HEAT_INDEX_ALL_DATA_HOURS = "ar_heat_index_all_data_hours@";
    /**
     * 诊断得分排名
     */
    public static final String DIAGNOSIS_SCORE_RANK = "diagnosis_score_rank";
    /**
     * 最新的货币价格以及涨幅
     */
    public static final String NEW_CURRENCY_GAIN_PRICE_KEY = "new_currency_gain_price";
    /**
     * 概念下的平台币种
     */
    public static final String TIR_CONCEPT_CURRENCY_RANK = "tir_concept_currency_rank@";
    /**
     * 超过6%
     */
    public static final String MORE_THAN_PERCENTAGE_SIX_CHANGE = "more_than_percentage_six_change@";
    /**
     * 赚钱效应5分钟数据
     */
    public static final String MARK_MONEY_EFFECT_FIVE_DATA = "mark_money_effect_five_data";
    /**
     * 量能变化5分钟数据
     */
    public static final String MARKET_INTERPRETATION_CHANGE = "market_interpretation_change";
    /**
     * 权重表现5分钟数据
     */
    public static final String MARKET_WEIGHTS_PERFORMANCE = "market_weights_performance";
    /**
     * 货币诊断-市场热度5分钟数据 MarketHeatListToCache
     */
    public static final String DIAGNOSIS_MARKET_HEATLIST = "diagnosis_market_heatList@";
    /**
     * 货币诊断-量能变化5分钟数据
     */
    public static final String DIAGNOSIS_ENERGY_VOLUME_CHANGE = "diagnosis_energy_volume_Change@";
    /**
     * 货币诊断-货币流动性5分钟数据
     */
    public static final String DIAGNOSIS_CURRENCY_EXCHANGE_RATE = "diagnosis_currency_exchange_rate@";
    /**
     * 货币诊断-货币诊断得分5分钟数据
     */
    public static final String DIAGNOSIS_CURRENCY_SCORE_INFO = "diagnosis_currency_score_info@";

    /**
     * 平均成本
     */
    public static final String AVG_COST_INDEX = "avg_cost_index";

    /**
     * 多空行情
     */
    public static final String SPACETREND_INDEX = "spacetrend_index";

    /**
     * 压力支撑
     */
    public static final String PRESSURE_SUP_INDEX = "pressure_sup_index";

    /**
     * 市场表现
     */
    public static final String MARkETPER_INDEX = "marketper_index";

    /**
     * 平台不概念指数
     */
    public static final String BOTTOMTEZHI_INDEX = "bottomtezhi_index";


    /**
     * 货币诊断排名前5
     */
    public static final String DIAGNOSIS_Top5_INDEX = "diagnosis_top5_index";


    /**
     * 平台币种
     */
    public static final String CONCEPT_CURRCY_INDEX = "concept_currcy_index";


    /**
     * 概念下属币种
     */
    public static final String CURRCY_NOTION_INDEX = "notionCoin";
    /**
     * 概念指数状态码
     */
    public static final String CURRCY_NOTION_BASE_PERIOD = "notion";

    /**
     * 概念基期状态码
     */
    public static final String CURRCY_NOTION_BASE_jiqi_PERIOD = "notion_jiqi";

    /**
     * 行业指数状态码
     */
    public static final String CURRCY_INDUSTRY_BASE_PERIOD = "trade@";

    /**
     * 行业基期状态码
     */
    public static final String CURRCY_INDUSTRY_BASE_jiqi_PERIOD = "trade_jiqi@";

    /**
     * 行业基期市值之和
     */
    public static final String CURRCY_INDUSTRY_BASE_PERIOD_VALUE = "trade_value@";

    /**
     * 行业基期值
     */
    public static final String CURRCY_INDUSTRY_BASE_PERIOD_HANGYE_VALUE = "trade_hangye_value@";

    /**
     * 权重基期状态码
     */
    public static final String CURRCY_WEIGHTS_BASE_PERIOD = "weights";

    /**
     * 权重更改前流通市值之和
     */
    public static final String CURRCY_WEIGHTS_BASE_PERIOD_VALUE = "weights_value";


    /**
     * 权重基期值
     */
    public static final String CURRCY_WEIGHTS_BASE_PERIOD_QUANZHONG_VALUE = "weights_quanzhong_value";

    /**
     * 概念基期市值之和
     */
    public static final String CURRCY_CONCEPT_BASE_PERIOD_VALUE = "concept_value@";

    /**
     * 概念基期值
     */
    public static final String CURRCY_CONCEPT_BASE_PERIOD_GAINIAN_VALUE = "concept_gainian_value@";



    public static final String CONCEPT_BASE_PERIOD_SUM_MARKET = "CONCEPT_BASE_PERIOD_SUM_MARKET@";

    /**
     * 行类货币分类
     */
    public static final String CURRENCY_CLASSIFICATION = "currency classification";

    /**
     * 货币行情
     */
    public static final String CURRENCY_QUOTATIONRESULTVO = "currency_quotationresultvo";

    /**
     * 概念行情
     */
    public static final String CONCEPT_QUOTATIONRESULTVO = "concept_quotationresultvo";
    /**
     * k线数据-买卖单
     */
    public static final String API_SERVICE_ORDER_BOOK = "api_service_order_book";
    /**
     * k线数据-K线图 最后一次数据，最后一分钟数据
     */
    public static final String API_SERVICE_K_ACTION = "api_service_k_action";
    /**
     * k线数据-K线图 最后一次数据，最后一分钟数据,数据从历史交易消息队列获取
     */
    public static final String API_SERVICE_K_ACTION_TRADES = "api_service_k_action_trades";
    /**
     * k线数据-K线图 最后一次数据，最后一分钟数据和前一分钟数据,数据从历史交易消息队列获取
     */
    public static final String API_SERVICE_K_ACTION_TRADES_TWO = "api_service_k_action_trades_tow";
    /**
     * k线数据-K线图 记录时时最高价、最低价
     */
    public static final String API_SERVICE_K_ACTION_MAXMIN_PRICE = "api_service_k_action_maxmin_price";
    /**
     * k线数据-K线图 记录时时最新涨幅、开盘美元价格，开盘人民币价格
     */
    public static final String API_SERVICE_K_ACTION_CHANGE_PRICE = "api_service_k_action_change_price";
    /**
     * 记录最新价格 一直存入redis中
     */
    public static final String API_SERVICE_K_ACTION_ALL_DATA_PRICE = "api_service_k_action_all_data_price";
    /**
     * k线数据-K线图 最后一分钟数据前一分钟数据
     */
    public static final String API_SERVICE_K_ACTION_LAST = "api_service_k_action_last";
    /**
     * k线数据-K线图 最后一次数据,map类型
     */
    public static final String API_SERVICE_K_ACTION_MAP = "api_service_k_action_map";
    /**
     * k线数据-K线图 基期数据当天0点数据
     */
    public static final String API_SERVICE_K_ACTION_PERIOD = "api_service_k_action_period";
    /**
     * k线数据-K线图 全量数据
     */
    public static final String API_SERVICE_K_ACTION_ALL_DATA = "api_service_k_action_all_data";
    /**
     * k线数据-K线图 全量数据从历史交易获取
     */
    public static final String API_SERVICE_K_TRADES_ALL_DATA = "api_service_k_trades_all_data";
    /**
     * k线数据-历史交易
     */
    public static final String API_SERVICE_TRADES = "api_service_trades";
    /**
     * k线数据-历史交易 全量数据
     */
    public static final String API_SERVICE_TRADES_ALL_DATA = "api_service_trades_all_data";
    /**
     * k线数据-历史交易 保存最新时间段数据
     */
    public static final String API_SERVICE_TRADES_PART = "api_service_trades_part";
    /**
     * k线数据-历史交易 每天0点之后第一条交易数据
     */
    public static final String API_SERVICE_TRADES_PRIOD = "api_service_trades_priod";
    /**
     * k线数据-历史交易 昨日收盘价格
     */
    public static final String API_SERVICE_TRADES_PRIOD_YESTERDAY = "api_service_trades_priod_yesterday";
    /**
     * k线数据-历史交易 每天12点之后第一条交易数据
     */
    public static final String API_SERVICE_TRADES_PM_PRIOD = "api_service_trades_pm_priod";
    /**
     * k线数据-历史交易 保存24小时288条交易量，5分钟一条
     */
    public static final String API_SERVICE_TRADES_24H_DATA = "api_service_trades_24h_data";

    /**
     * k线数据-历史交易 保存24小时288条交易量，5分钟一条,图形数据3小时的
     */
    public static final String API_SERVICE_TRADES_3H_DATA = "api_service_trades_3h_data";
    /**
     * k线数据-历史交易 保存24小时288条交易量，5分钟一条，图形数据一天的
     */
    public static final String API_SERVICE_TRADES_1D_DATA = "api_service_trades_1d_data";
    /**
     * k线数据-历史交易 保存24小时288条交易量，5分钟一条，记录5,10/1h、3h、24h、今日的资金流入
     */
    public static final String API_SERVICE_TRADES_24H_CAPITAL_FLOW_DATA = "api_service_trades_24h_capital_flow_data";
    /**
     * k线数据-历史交易 实时资金流入最后一次数据之和（也就是今日之和）
     */
    public static final String API_SERVICE_TRADES_LAST_CAPITAL_FLOW_DATA = "api_service_trades_last_capital_flow_data";
    /**
     * k线数据-历史交易 保存k线行情所有数据，按照交易所和精选区分
     */
    public static final String API_SERVICE_TRADES_EXCHANGE_SELECT_ALL_DATA = "api_service_trades_exchange_select_all_data";

    /**
     * k线数据-深度
     */
    public static final String API_SERVICE_DEPTH = "api_service_depth";


    public static final String GOOGLE_TRENDS_FLAG = "google_trends_flag@";

    /**
     * 从bourse缓存 匹配到的交易所在ccxt 中的交易对
     */
    public static final String EXCHANGE_INFO = "exchangeInfo";
    public static final String EXCHANGE = "exchange";

    /**
     * 交易所的id+名称
     */
    public static final String BOURSE_NAME_INDEX = "bourse";
    /**
     * 人民币对美元汇率
     */
    public static final String RMB_USD_RATE= "rmb_usd_rate";

    /**
     * 所有需要获取的交易对(手工配置)
     */
    public static final String EXCHANGE_SYMBOLS = "exchangeSymbols";

    /**
     * 币种行情
     */
    public static final String CURRENCY_MARKET = "currency_market";

    /**
     * 大盘指数Ma均线
     */
    public static final String Broader_DATA_MA_7 = "Broader_DATA_MA_7";
    public static final String Broader_DATA_MA_30 = "Broader_DATA_MA_30";
    public static final String Broader_DATA_MA_60 = "Broader_DATA_MA_60";

    /**
     * CMC货币诊断币种Ma均线
     */
    public static final String CMC_DATA_MA_7 = "CMC_DATA_MA_7@";
    public static final String CMC_DATA_MA_30 = "CMC_DATA_MA_30@";
    public static final String CMC_DATA_MA_60 = "CMC_DATA_MA_60@";
    /**
     * 大盘7天走势
     */
    public static final String BROADER_DATA_7_STATUS = "broader_data_7_status";
    /**
     * 大盘30天走势
     */
    public static final String BROADER_DATA_30_STATUS = "broader_data_30_status";

    /**
     * 货币诊断7天走势
     */
    public static final String CMC_DATA_7_STATUS = "cmc_data_7_status@";
    /**
     * 货币诊断30天走势
     */
    public static final String CMC_DATA_30_STATUS = "cmc_data_30_status@";


    /**
     * 看涨-选币30天创新高数据
     */
    public static final String K_ACTION_LOOK_UP_30_HIGH_PRICE = "k_action_look_up_30_high_price";
    /**
     * 看涨-选币连续上涨突破
     */
    public static final String K_ACTION_LOOK_UP_UP_UP_PRICE = "k_action_look_up_up_up_price";
    /**
     * 看涨-选币均线上涨
     */
    public static final String K_ACTION_LOOK_UP_AVERAGE_BREACH_PRICE = "k_action_look_up_average_breach_price";
    /**
     * 看涨-选币上涨突破箱体
     */
    public static final String K_ACTION_LOOK_UP_BREACH_BOTTOM_PRICE = "k_action_look_up_breach_bottom_price";
    /**
     * 看跌-选币30天创新低数据
     */
    public static final String K_ACTION_LOOK_DROP_30_LOW_PRICE_DATA = "k_action_look_drop_30_low_price";
    /**
     * 看跌-连续下跌破位
     */
    public static final String K_ACTION_LOOK_DROP_CONTINUITY = "k_action_look_drop_continuity";
    /**
     * 看跌-选币跌破箱体
     */
    public static final String K_ACTION_LOOK_DROP_BREACH_BOTTOM_PRICE = "k_action_look_drop_breach_bottom_price";
    /**
     * 看跌-选币均线下跌
     */
    public static final String K_ACTION_LOOK_DROP_AVERAGE_BREACH_PRICE = "k_action_look_drop_average_breach_price";
    /**
     * k线数据-历史交易 24小时最高、最低价格和交易量
     */
    public static final String API_SERVICE_TRADES_24H_MAX_MIN_PRICE_VOLUME = "api_service_trades_24h_max_min_price_volume";
    /**
     * 挖链接口：组装货币诊断-曲线图和评语
     */
    public static final String WLAPI_CURRENCY_DIAGNOSIS_GRAPHS_COMMENTS="api_currency_diagnosis_graphs_comments";

    /**
     * CMC数据,24小时最高价格
     */
    public static final String TIR_CMC_HIGH_PRICE = "tir_cmc_high_price@";
    /**
     * CMC数据,24小时最低价格
     */
    public static final String TIR_CMC_LOW_PRICE = "tir_cmc_low_price@";
    /**
     * 24H涨幅rowkey
     */
    public static final String K_LINE_CHANGE_24H_SEARCH_ROWKEY="k_line_change_24h_search_rowkey";
    /**
     * 1H涨幅rowkey
     */
    public static final String K_LINE_CHANGE_1H_SEARCH_ROWKEY="k_line_change_1h_search_rowkey";
    /**
     * 用于测试，正式环境取消
     */
    public static final String K_LINE_TEST_TEMP_TEST="k_line_test_temp_test";
    /**
     * 记录最后一条交易对价格，下一分钟的开盘
     */
    public static final String K_TRADES_LINE_LAST_PRICE="k_trades_line_last_price";

    /**
     * 币种行情全部
     */
    public static final String CURRENCY_MARKET_All = "currency_market_all";

    /**
     * 币种行情跌幅榜
     */
    public static final String CURRENCY_MARKET_DIE = "currency_market_die";
    /**
     * k线行情 交易所-交易对整条数据，自选直接根据交易所id和交易对id查询
     */
    public static final String K_ACTION_SELF_SELECT = "k_action_self_select";

    /**
     * 7日曲线图
     */
    public static final String DAY7_K_ACTION = "day7_d_k_action";

    /**
     * 用户信息
     */
    public static final String TIR_USER_TOKEN = "tir_user_token";
    /**
     * 用户保存24h的rowkey用户计算24小时涨幅或者一小时涨幅
     */
    public static final String TRADES_ROW_KEY_24_H = "trades_row_key_24_h";
    /**
     * 操作名称
     */
    public static final String LOGINNAME = "logname";

    /**
     * 市场表现App
     */
    public static final String MARkETPER_INDEX_APP = "marketper_index_app";

    /**
     * 压力支撑App
     */
    public static final String PRESSURE_SUP_INDEX_APP = "pressure_sup_index_app";

    /**
     * 平均成本App
     */
    public static final String AVG_COST_INDEX_APP = "avg_cost_index_app";

    /**
     * 多空行情App
     */
    public static final String SPACETREND_INDEX_APP = "spacetrend_index_app";

    /**
     * 用户验证码token
     */
    public static final String WEB_CT = "web:ct:";

    /**
     * 修改前，权重货币id列表
     */
    public static final String WEIGHT_COEFFICIENT = "weight_coefficient";

    /**
     * 修改前，行业id列表
     */
    public static final String INSTUDY_TRENDS = "instudy_trends";

    /**
     * 修改前，概念id列表
     */
    public static final String CONCEPTION_HISTORY = "conception_history";
    /**
     * 大盘强度定时
     */
    public static final String INDEX_GRAIL_STRONG = "index_grail_strong";
    /**
     * cmc全球最新数据，市值和交易量
     */
    public static final String CMC_GLOBAL_LAST_DATA = "cmc_global_last_data";

    /**
     * 微信机器人大盘指数
     */
    public static final String GLOBAL_INDEX_VX_ROBOT = "global_index_vx_robot";
    /**
     * 微信机器人货币市值排名
     */
    public static final String CURRENCY_MARKET_RANK_VX_ROBOT = "currency_market_rank_vx_robot@";

    /**
     * cmc价格changFlag刷新
     */
    public static final String CMC_PRICE_CHANGFLAG = "cmc_price_changflag@";
}
